const TOKENKEY = 'heima-toutiao-token'
//存
const saveToken = obj =>{
    localStorage.setItem(TOKENKEY,JSON.stringify(obj))
}
//取
const getToken =()=>{
    return JSON.parse(localStorage.getItem(TOKENKEY))
}
//删
const removeToken =()=>{
    localStorage.removeItem(TOKENKEY)
}
export{saveToken,removeToken,getToken}